#![allow(dead_code)]
#![allow(unused_variables)]
fn main() {
    let price: f64 = 99.0;
    let price9 = 18.00; // 默认是 f64
    let price10: f32 = 8.88;
    let price11: f64 = 168.125; // 双精度浮点型

    println!("price9 {}", price9); //输出 price9 18
    println!("price10 {}", price10); //输出 price10 8.88
    println!("price11 {}", price11); //输出 price11 168.125

    let price12 = 1_000_000;
    println!("price12 {}", price12); //输出 price12 1000000

    let price13 = 1_000_000.666_123;
    println!("price13 {}", price13); //输出 price13 1000000.666123

    println!(
        "price13 type_name is {}",
        std::any::type_name_of_val(&price13)
    )
}